package mx.com.matersys.vacs.domain;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.TableGenerator;

import org.springframework.roo.addon.dbre.RooDbManaged;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity(versionField = "", table = "tipo_registro")

public class TipoRegistro {
	
	@Id
	@TableGenerator(name="GEN_TIPO_REG", table="sequence", pkColumnName="SEQ_NAME", valueColumnName="SEQ_COUNT", pkColumnValue="SEQ_TIPO_REG", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.TABLE, generator="GEN_TIPO_REG")
    @Column(name = "idregistro")
    private Integer idregistro;
	
	@OneToMany(mappedBy = "idtiporegistro")
    private Set<BitacoraRegistros> bitacoraRegistross;
    
    @Column(name = "descripcion", length = 20)
    private String descripcion;
	
}
